package com.jianshuge.app.widget;

import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

public class NoClickableSpan extends ClickableSpan {
	private String text;

	public NoClickableSpan(String text) {
		super();
		this.text = text;
	}

	@Override
	public void updateDrawState(TextPaint ds) {
        ds.setColor(ds.linkColor);  
		ds.setUnderlineText(false); // 去掉下划线
	}

	@Override
	public void onClick(View widget) {
		// doNothing...
	}

}

